﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DesignPattern.MementoPattern
{
    //备忘录
    public class Memento
    {
        private string state;

        public Memento(string state)
        {
            this.state = state;
        }
        //需要保存的数据的属性,可以是多个
        public string State
        {
            get { return state; }
        }
    }
}
